<?php

namespace App\Events\Department;

use App\Models\Department;
use Illuminate\Broadcasting\Channel;
use Illuminate\Queue\SerializesModels;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Broadcasting\PresenceChannel;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;

/**
 * 删除部门后触发事件
 *
 * Date: 16/05/2018
 * @author George
 * @package App\Events\Department
 */
class DeletedEvent
{
    use Dispatchable, InteractsWithSockets, SerializesModels;

    public $department;

	/**
	 * DeletedEvent constructor.
	 * @param $department
	 */
	public function __construct(Department $department)
	{
		$this->department = $department;
	}
}
